package com.dianping.cat.configuration.message.entity;

import com.dianping.cat.configuration.message.BaseEntity;
import com.dianping.cat.configuration.message.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class AtomicMessageConfig
  extends BaseEntity<AtomicMessageConfig> {
/* 10 */   private Map<String, Domain> m_domains = new LinkedHashMap();






/* 17 */   public void accept(IVisitor visitor) { visitor.visitAtomicMessageConfig(this); }

  
  public AtomicMessageConfig addDomain(Domain domain) {
/* 21 */     this.m_domains.put(domain.getId(), domain);
/* 22 */     return this;
  }

  
  public boolean equals(Object obj) {
/* 27 */     if (obj instanceof AtomicMessageConfig) {
/* 28 */       AtomicMessageConfig _o = (AtomicMessageConfig)obj;

/* 30 */       if (!equals(getDomains(), _o.getDomains())) {
/* 31 */         return false;
      }

      
/* 35 */       return true;
    }
    
/* 38 */     return false;
  }

  
/* 42 */   public Domain findDomain(String id) { return (Domain)this.m_domains.get(id); }



/* 46 */   public Map<String, Domain> getDomains() { return this.m_domains; }


  



  
  public void mergeAttributes(AtomicMessageConfig other) {}


  
/* 63 */   public Domain removeDomain(String id) { return (Domain)this.m_domains.remove(id); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/message/entity/AtomicMessageConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */